package lab04.test02;

/**
 * Created by AIR on 2017/12/28.
 */
public class HelloWorldThread extends Thread {
    //每隔一秒向控制台输出"Hello,World!"

    @Override

    public void run() {

        while (true) {

            try {

                Thread.sleep(1000);

            } catch (InterruptedException e) {

                e.printStackTrace();

            }


            System.out.println("Hello,World!");


        }

    }
}
